package com.netease.nim.uikit.net.rxjava;


import com.netease.nim.uikit.net.entity.BaseBean;
import com.netease.nim.uikit.net.entity.MemberBean;
import com.netease.nim.uikit.net.progress.HttpInterceptor;

import java.util.concurrent.TimeUnit;

import okhttp3.OkHttpClient;
import okhttp3.RequestBody;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;
import rx.Observable;
import rx.Subscriber;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

/**
 * Created by Administrator on 2017/9/13.
 */

public class HttpMethods {
    public static final String QN_PATH = "http://nbninikeji.com/";
    public static final String ACCESS_KEY = "HediAYr7J18nGa63jaDYGb_rJ6hsMseShsW5xLAF";
    public static final String SECRET_KEY = "mPWwkC21rVqO0VvBAwFvKBmbnULHv_JlvxEbchFv";
    public static final String BASE_URL = "http://www.nbninikeji.com/";
    public static final String BASE_IMG_URL = "http://www.nbninikeji.com";
    public static final String SHARE_TITLE = "萤火";
    public static final String SHARE_DESC = "萤火";
    public static final String SHARE_URL = "http://www.nbninikeji.com/downApk.client";
    public static final boolean isSuccess = false;
    private static final int DEFAULT_TIMEOUT = 30;
    private Retrofit retrofit;
    private APIService apiService;

    //构造方法私有
    private HttpMethods() {
        //手动创建一个OkHttpClient并设置超时时间
        //声明日志类
        HttpInterceptor httpLoggingInterceptor = new HttpInterceptor();
        //设定日志级别
        httpLoggingInterceptor.setLevel(HttpInterceptor.Level.BODY);
        OkHttpClient.Builder builder = new OkHttpClient.Builder();
        builder.connectTimeout(DEFAULT_TIMEOUT, TimeUnit.SECONDS).
                readTimeout(DEFAULT_TIMEOUT, TimeUnit.SECONDS).
                addInterceptor(httpLoggingInterceptor).
                writeTimeout(DEFAULT_TIMEOUT, TimeUnit.SECONDS);

        retrofit = new Retrofit.Builder()
                .client(builder.build())
                .addConverterFactory(ResponseConvertFactory.create())
                .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
                .baseUrl(BASE_URL)
                .build();

        apiService = retrofit.create(APIService.class);
    }

    //获取单例
    public static HttpMethods getInstance() {
        return SingletonHolder.INSTANCE;
    }

    /**
     * @param subscriber
     * @param requestBody 手机号
     */
    public void sendCode(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.sendCode(requestBody));
    }

    /**
     * 判断用户之间的关系
     */
    public void judgeMemberRelation(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.judgeMemberRelation(requestBody));
    }

    /**
     * @param subscriber
     * @param requestBody 手机号
     */
    public void checkCode(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.checkCode(requestBody));
    }

    /**
     * @param subscriber
     * @param observable
     */
    private void sub(Subscriber<BaseBean> subscriber, Observable observable) {
        observable.subscribeOn(Schedulers.io())
                .unsubscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(subscriber);
    }

    /**
     * 请求地址：/registerMember.client
     *
     * @param subscriber
     * @param requestBody 注册
     */
    public void register(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.register(requestBody));
    }

    /**
     * 请求地址：/registerMember.client
     *
     * @param subscriber
     * @param requestBody 注册
     */
    public void registerNew(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.registerMemberNew(requestBody));
    }

    /**
     * 请求地址：/registerWeChat.client
     *
     * @param subscriber
     * @param requestBody 注册
     */
    public void registerWeChat(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.registerWeChat(requestBody));
    }

    /**
     * 请求地址：/registerWeChatNew.client
     *
     * @param subscriber
     * @param requestBody 注册
     */
    public void registerWeChatNew(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.registerWeChatNew(requestBody));
    }


    /**
     * 请求地址：memberLogin.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void login(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.login(requestBody));
    }

    /**
     * 请求地址：authorLogin.client
     * @param subscriber
     * @param requestBody 登录
     */
    public void authorLogin(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.authorLogin(requestBody));
    }

    /**
     * 请http://47.92.161.117/getSuperVipInfo.client
     *
     * @param subscriber
     */
    public void getSuperVipInfo(Subscriber<BaseBean> subscriber) {
        sub(subscriber, apiService.getSuperVipInfo());
    }
    /**
     * http://47.92.161.117/getWalletInfo.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void getWalletInfo(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getWalletInfo(requestBody));
    }
    /**
     * http://47.92.161.117/tiXian.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void tiXian(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.tiXian(requestBody));
    }

    /**
     * http://47.92.161.117/listTiXian.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void listTiXian(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.listTiXian(requestBody));
    }
    /**
     * http://47.92.161.117/updateTiXianInfo.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void updateTiXianInfo(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.updateTiXianInfo(requestBody));
    }
    /**
     * http://47.92.161.117/checkMsg.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void checkMsg(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.checkMsg(requestBody));
    }
    /**
     * http://47.92.161.117/createOrder.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void createOrder(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.createOrder(requestBody));
    }
    /**
     * http://47.92.161.117/lookSiMiPic.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void lookSiMiPic(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.lookSiMiPic(requestBody));
    }

    /**
     * http://47.92.161.117/lookSiMiPic.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void getSiMiPriceByMemberId(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getSiMiPriceByMemberId(requestBody));
    }

    /**
     * http://47.92.161.117/getOtherMemberInfo.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void getOtherMemberInfo(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getOtherMemberInfo(requestBody));
    }
    /**
     * 请求地址：forgetPassword.client
     *
     * @param subscriber
     * @param requestBody 注册
     */
    public void forget(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.forget(requestBody));
    }

    /**
     * http://47.92.161.117/listDynamic.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void dt_list(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.dt_list(requestBody));
    }
    /**
     * http://47.92.161.117/listVedio.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void listVedio(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.listVedio(requestBody));
    }

    /**
     * http://47.92.161.117/listDynamicPaiHangBang.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void listDynamicPaiHangBang(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.listDynamicPaiHangBang(requestBody));
    }

    /**
     * http://47.92.161.117/deleteDongTai.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void deleteDongTai(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.deleteDongTai(requestBody));
    }

    /**
     * http://47.92.161.117/gzListDynamic.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void dt_gz_list(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.dt_gz_list(requestBody));
    }

    /**
     * http://47.92.161.117/tcListDynamic.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void tcListDynamic(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.tcListDynamic(requestBody));
    }

    /**
     * http://47.92.161.117/getTuiJianList.client
     *
     * @param subscriber
     */
    public void getTuiJianList(Subscriber<BaseBean> subscriber) {
        sub(subscriber, apiService.getTuiJianList());
    }

    /**
     * http://47.92.161.117/getTuiJianListPage.client
     *
     * @param subscriber
     */
    public void getTuiJianListPage(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getTuiJianListPage(requestBody));
    }

    /**
     * http://47.92.161.117/createDynamic.client
     *
     * @param subscriber
     * @param requestBody 手机号
     */
    public void createDynamic(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.createDynamic(requestBody));
    }
    /**
     *http://47.92.161.117/createWish.client
     *
     * @param subscriber
     * @param requestBody 手机号
     */
    public void createWish(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.createWish(requestBody));
    }

    /**
     *http://47.92.161.117/saveWishXinLu.client
     *
     * @param subscriber
     * @param requestBody 手机号
     */
    public void saveWishXinLu(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.saveWishXinLu(requestBody));
    }



    /**
     * 请求地址：/saveDianZan.client
     *
     * @param subscriber
     * @param requestBody 手机号
     */
    public void saveDianZan(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.saveDianZan(requestBody));
    }

    /**
     * 请求地址：http://47.92.161.117/savePingLun.client
     *
     * @param subscriber
     * @param requestBody 手机号
     */
    public void savePingLun(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.savePingLun(requestBody));
    }

    /**
     * http://47.92.161.117/listPingLun.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void listPingLun(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.listPingLun(requestBody));
    }

    /**
     * http://47.92.161.117/getDongTaiById.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void getDongTaiById(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getDongTaiById(requestBody));
    }

    /**
     * http://47.92.161.117/getWishById.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void getWishById(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getWishById(requestBody));
    }

    /**
     * http://47.92.161.117/listPingLun.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void delPingLun(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.delPingLun(requestBody));
    }

    /**
     * http://47.92.161.117/listPingLun.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void getBannerList(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getBannerList(requestBody));
    }

    /**
     * http://47.92.161.117/getCityMember.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void getCityMember(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getCityMember(requestBody));
    }

    /**
     * http://47.92.161.117/getUnreadSystemNumber.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void getUnreadSystemNumber(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getUnreadSystemNumber(requestBody));
    }

    /**
     *http://47.92.161.117/listChargeGold.client
     *
     * @param subscriber
     */
    public void listChargeGold(Subscriber<BaseBean> subscriber) {
        sub(subscriber, apiService.listChargeGold());
    }
    /**
     *http://47.92.161.117/listChargeVip.client
     *
     * @param subscriber
     */
    public void listChargeVip(Subscriber<BaseBean> subscriber) {
        sub(subscriber, apiService.listChargeVip());
    }
    /**
     * http://47.92.161.117/listWishHelp.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void listWishHelp(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.listWishHelp(requestBody));
    }

    /**
     * http://47.92.161.117/listWishXinLu.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void listWishXinLu(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.listWishXinLu(requestBody));
    }

    /**
     * http://47.92.161.117/delWishXinLu.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void delWishXinLu(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.delWishXinLu(requestBody));
    }

    /**
     * http://47.92.161.117/daShangPresent.client
     *
     * @param subscriber
     */
    public void listPresent(Subscriber<BaseBean> subscriber) {
        sub(subscriber, apiService.listPresent());
    }

    /**
     * 请求地址：http://47.92.161.117/savePingLun.client
     *
     * @param subscriber
     * @param requestBody 手机号
     */
    public void daShangPresent(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.daShangPresent(requestBody));
    }

    /**
     * http://47.92.161.117/getMemberCenterInfo.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void getMemberCenterInfo(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getMemberCenterInfo(requestBody));
    }
    /**
     * http://47.92.161.117/updatePrice.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void updatePrice(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.updatePrice(requestBody));
    }

    /**
     * http://47.92.161.117/submitAdvice.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void submitAdvice(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.submitAdvice(requestBody));
    }

    /**
     * http://47.92.161.117/saveJuBao.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void saveJuBao(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.saveJuBao(requestBody));
    }

    /**
     * http://47.92.161.117/zhuXiaoAccount.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void zhuXiaoAccount(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.zhuXiaoAccount(requestBody));
    }

    /**
     * http://47.92.161.117/bindCode.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void bindCode(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.bindCode(requestBody));
    }

    /**
     * http://47.92.161.117/bindMobile.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void bindMobile(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.bindMobile(requestBody));
    }

    /**
     * http://47.92.161.117/getSettingInfo.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void getSettingInfo(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getSettingInfo(requestBody));
    }

    /**
     *http://47.92.161.117/getVersionInfo.client
     *
     * @param subscriber
     */
    public void getVersionInfo(Subscriber<BaseBean> subscriber) {
        sub(subscriber, apiService.getVersionInfo());
    }

    /**
     *http://47.92.161.117/getIndexInfo.client
     *
     * @param subscriber
     */
    public void getIndexInfo(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getIndexInfo(requestBody));
    }

    /**
     *http://47.92.161.117/getHongBaoShow.client
     *
     * @param subscriber
     */
    public void getHongBaoShow(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getHongBaoShow(requestBody));
    }

    /**
     *http://47.92.161.117/heartConnect.client
     *
     * @param subscriber
     */
    public void heartConnect(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.heartConnect(requestBody));
    }

    /**
     *http://47.92.161.117/getTanChuMsg.client
     *
     * @param subscriber
     */
    public void getTanChuMsg(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getTanChuMsg(requestBody));
    }

    /**
     * http://47.92.161.117/getYwjjInfo.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void getYwjjInfo(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getYwjjInfo(requestBody));
    }
    /**
     *http://47.92.161.117/duiHuanYyjj.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void duiHuanYyjj(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.duiHuanYyjj(requestBody));
    }
    /**
     *http://47.92.161.117/fridJiaSu.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void fridJiaSu(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.fridJiaSu(requestBody));
    }
    /**
     * http://47.92.161.117/getInfoByMemberId.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void getInfoByMemberId(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getInfoByMemberId(requestBody));
    }
    /**
     * http://47.92.161.117/getInfoByMemberId.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void verify(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.verify(requestBody));
    }
    /**
     * http://47.92.161.117/trueNameRengZheng.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void trueNameRengZheng(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.trueNameRengZheng(requestBody));
    }
    /**
            *   http://47.92.161.117/updateMember.client
            *
            * @param subscriber
     * @param requestBody
     */
    public void updateMember(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.updateMember(requestBody));
    }
    /**
     *   http://47.92.161.117/callMember.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void callMember(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.callMember(requestBody));
    }
    /**
     *   http://47.92.161.117/saveGuanZhu.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void saveGuanZhu(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.saveGuanZhu(requestBody));
    }
    /**
     *   http://47.92.161.117/saveHeiMingDan.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void saveHeiMingDan(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.saveHeiMingDan(requestBody));
    }
    /**
     *http://47.92.161.117/listWish.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void listWish(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.listWish(requestBody));
    }

    /**
     *http://47.92.161.117/getShouFeiInfo.client
     * 获取配置信息
     * @param subscriber
     * @param requestBody
     */
    public void getShouFeiInfo(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getShouFeiInfo(requestBody));
    }

    /**
     *http://47.92.161.117/getWishMoney.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void getWishMoney(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getWishMoney(requestBody));
    }
    /**
     *http://47.92.161.117/getGuanZhuMember.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void getGuanZhuMember(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getGuanZhuMember(requestBody));
    }
    /**
     *http://47.92.161.117/receiverLiWu.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void receiverLiWu(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.receiverLiWu(requestBody));
    }
    /**
     *http://47.92.161.117/getGuanZhuMember.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void getMyFriend(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getMyFriend(requestBody));
    }
    /**
     *http://47.92.161.117/getGuanZhuMember.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void getMyFenSi(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getMyFenSi(requestBody));
    }

    /**
     *http://47.92.161.117/getLookMeMember.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void getLookMeMember(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getLookMeMember(requestBody));
    }

    /**
     *http://47.92.161.117/listPushMsg.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void listPushMsg(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.listPushMsg(requestBody));
    }

    /**
     *http://47.92.161.117/getMsgTipNum.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void getMsgTipNum(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getMsgTipNum(requestBody));
    }

    /**
     *http://47.92.161.117/listZanMsg.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void listZanMsg(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.listZanMsg(requestBody));
    }

    /**
     *http://47.92.161.117/listWishMsg.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void listWishMsg(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.listWishMsg(requestBody));
    }



    /**
     *http://47.92.161.117/listGuanZhunMsg.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void listGuanZhunMsg(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.listGuanZhunMsg(requestBody));
    }

    /**
     *http://47.92.161.117/getShareMember.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void getShareMember(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getShareMember(requestBody));
    }

    /**
     *http://47.92.161.117/getSearchMeMember.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void getSearchMeMember(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getSearchMeMember(requestBody));
    }

    /**
     *http://47.92.161.117/heiMingDanMemberList.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void heiMingDanMemberList(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.heiMingDanMemberList(requestBody));
    }

    /**
     *http://47.92.161.117/getSignList.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void getSignList(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getSignList(requestBody));
    }

    /**
     *http://47.92.161.117/listCashNote.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void listCashNote(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.listCashNote(requestBody));
    }

    /**
     *http://47.92.161.117/listInviteList.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void listInviteList(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.listInviteList(requestBody));
    }

    /**
     *http://47.92.161.117/getInviteInfo.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void getInviteInfo(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getInviteInfo(requestBody));
    }

    /**
     *http://47.92.161.117/listTiXianItem.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void listTiXianItem(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.listTiXianItem(requestBody));
    }

    /**
     *http://47.92.161.117/saveWishHelp.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void saveWishHelp(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.saveWishHelp(requestBody));
    }

    public void deleteWish(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.deleteWish(requestBody));
    }
    /**
     *http://47.92.161.117/finishWish.client
     */
    public void finishWish(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.finishWish(requestBody));
    }


    /**
     *http://47.92.161.117/updateWishHelp.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void updateWishHelp(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.updateWishHelp(requestBody));
    }

    /**
     *http://47.92.161.117/getSharkNumbers.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void getSharkNumbers(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getSharkNumbers(requestBody));
    }

    /**
     *http://47.92.161.117/yaoYiYao.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void yaoYiYao(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.yaoYiYao(requestBody));
    }



    /**
     * http://47.92.161.117/getMemberInfoByMemberId.client
     *
     * @param subscriber
     * @param requestBody
     */
    public void getMemberInfoByMemberId(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getMemberInfoByMemberId(requestBody));
    }

    /**
     * http://47.92.161.117/getDictionaryItemList.client
     *
     * @param subscriber
     * @param requestBody 登录
     */
    public void getDictionaryItemList(Subscriber<BaseBean> subscriber, RequestBody requestBody) {
        sub(subscriber, apiService.getDictionaryItemList(requestBody));
    }

    //在访问HttpMethods时创建单例
    private static class SingletonHolder {
        private static final HttpMethods INSTANCE = new HttpMethods();
    }
}
